| Total Complexity | 1 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { Controller, Inject } from '@nestjs/common'; |
||
| 5 | |||
| 6 | @Controller() |
||
| 7 | export class AppService { |
||
| 8 | |||
| 9 | constructor( |
||
| 10 | @Inject(TRANSPORT_EVENT_BUS_SERVICE) private readonly eventBus: IEventBus |
||
| 11 | ){ |
||
| 12 | |||
| 13 | } |
||
| 14 | @EventPattern(TRANSPORT_EVENT_BUS_PATTERN) |
||
| 15 | accumulate(@TransportEvent() event: IEvent): void { |
||
| 16 | this.eventBus.publish(event); |
||
| 17 | } |
||
| 19 |